package com.doucat.support.component.start;

import android.content.Context;
import android.content.Intent;

import com.doucat.support.component.fragment.host.HostActivity;
import com.doucat.support.constant.PublicBundleConstant;

/**
 * -----------------------------------------------------------------
 * Copyright (C) 2021-2031, by tonly, All rights reserved.
 * -----------------------------------------------------------------
 * File: HostStarter.java
 * Author: wangfy
 * Create: 2021/7/22 10:44
 */
public class HostStarter extends AbsStarter{
    public HostStarter(Context context) {
        super(context);
    }

    @Override
    public void start(Class<?> cls) {
        Intent intent=new Intent(context, HostActivity.class);
        bundle.putSerializable(PublicBundleConstant.URL, cls);
        intent.putExtra(AbsStarter.START_BUNDLE,bundle);
        context.startActivity(intent);
    }
}